/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: UserFeignClientFallback
 * Author:   kadibeieun
 * Date:     2019/9/4 15:09
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.afd.consumer.fallback;

import com.afd.consumer.api.UserFeignClient;
import com.afd.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author kadibeieun
 * @create 2019/9/4
 * @since 1.0.0
 */
@Component
public class UserFeignClientFallback implements UserFeignClient {

    @Override
    public User queryUserById(Long id) {
        User user = new User();
        user.setId(id);
        user.setName("用户查询出现异常！");
        return user;
    }
}